# Makefile
#

server_objects = ServerSocket.o Socket.o serveur_multithread.o
server_test_objects = ServerSocket.o Socket.o serveur_test.o
client_objects = ClientSocket.o Socket.o client.o
client_test_objects = ClientSocket.o Socket.o client_test.o


all : serveur_multithread client
#all : serveur_test client_test

serveur_multithread: $(server_objects)
	g++ -lpthread -o serveur_multithread $(server_objects)
	
serveur_test: $(server_test_objects)
	g++ -o serveur_test $(server_test_objects)


client: $(client_objects)
	g++ -o client $(client_objects)

client_test: $(client_test_objects)
	g++ -o client_test $(client_test_objects)

Socket: Socket.cpp
ServerSocket: ServerSocket.cpp

ClientSocket: ClientSocket.cpp


serveur_multithread: serveur_multithread.cpp
client: client.cpp

serveur_test: serveur_test.cpp
client_test: client_test.cpp

clean:
	rm -f *.o serveur_multithread client
